import request from 'src/utils/request'

//获取渠道启用状态选项
export function channelOptions(data) {
  return request({
    url:'/channel/get-channel-status-options',
    method:'post',
    data
  })
}

//渠道列表
export function channelList(data) {
  return request({
    url:'/channel/index',
    method:'post',
    data
  })
}

//添加渠道
export function addChannel(data) {
  return request({
    url:'/channel/create',
    method:'post',
    data
  })
}

//删除渠道
export function delChannel(data) {
  return request({
    url:'/channel/delete',
    method:'post',
    data
  })
}

//修改渠道
export function editChannel(data) {
  return request({
    url:'/channel/update?id='+data.id,
    method:'post',
    data
  })
}
